package haoi.dt.utils;

public class NumberUtil {

    /**
     * 根据给定的数字，生成六位并对齐
     * @param number >= 0
     * @return
     */
    public static String gen6(int number){
        if(number < 10){
            return "00000" + number;
        }
        if(number < 100){
            return "0000" + number;
        }
        if(number < 1000){
            return "000" + number;
        }
        if(number < 10000){
            return "00" + number;
        }
        if(number < 100000){
            return "0" + number;
        }
        return ""+number;
    }
}
